package gov.fema.hazus.bdc.shared.entity;

import javax.persistence.Entity;
import javax.persistence.Id;

import com.googlecode.objectify.OKey;

@Entity
public class Car
{
    @Id private Long id;
    private String vin;
    private String color;
    private OKey<Driver> driver;
    
    public Car() {}
    
    public Car(String vin, String color)
    {
        this.setVin(vin);
        this.setColor(color);
    }

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setVin(String vin) {
		this.vin = vin;
	}

	public String getVin() {
		return vin;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getColor() {
		return color;
	}

	public void setDriver(OKey<Driver> driver) {
		this.driver = driver;
	}

	public OKey<Driver> getDriver() {
		return driver;
	}

}
